import Vue from 'vue'
import Vuex from 'vuex'
import VuexPersistence from 'vuex-persist';
var vueLocal = new VuexPersistence({
    //storage 存储方式·默认的是localStorage存储，可以修改成会话存储 (window.sessionstorage)
    storage: window.localStorage
    //window.sessionstorage  window.cookie
})
Vue.use(Vuex);
import login from './login'
export default new Vuex.Store({
    modules: {
        login
    },
    plugins: [vueLocal.plugin]
})